package cn.edu.scau.cmi.liuyonglin.chapter8;

public class Machine {
	public void checkBag (Goods good)throws DangerException{
		if(good.isDanger) {
			DangerException danger = new DangerException();
			throw danger;
		}
	}
	
}
